<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={dede:global.cfg_soft_lang/}" />
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/},东阿信息港,东阿人才,东阿房产" />
<meta name="description" content="{dede:field.description function='html2text(@me)'/}分类信息,{dede:field.title/}" />
<link href="{dede:global.cfg_templeturl/}/style/dedecms.css" rel="stylesheet" media="screen" type="text/css" />
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
<script language="javascript" type="text/javascript">
<!--
	function CheckLogin(){
	  var taget_obj = document.getElementById('_ajax_feedback');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/ajax_feedback.php");
	  DedeXHTTP = null;
	}
	function checkSubmit(){
		if(document.feedback.msg.value!='') document.feedback.submit();
		else alert("评论内容不能为空！");
	}

	function postBadGood(ftype,fid)
	{
		var taget_obj = document.getElementById(ftype+fid);
		var saveid = GetCookie('badgoodid');
		
		if(saveid != null)
		{
			 var saveids = saveid.split(',');
			 var hasid = false;
			 saveid = '';
			 j = 1;
			 for(i=saveids.length-1;i>=0;i--)
			 {
			 	  if(saveids[i]==fid && hasid) continue;
			 	  else {
			 	  	if(saveids[i]==fid && !hasid) hasid = true;
			 	  	saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);
			 	  	j++;
			 	  	if(j==10 && hasid) break;
			 	  	if(j==9 && !hasid) break;
			 	  }
			 }
	     if(hasid) { alert('您刚才已表决过了喔！'); return false;}
	     else saveid += ','+fid;
			 SetCookie('badgoodid',saveid,1);
		}
		else
		{
			SetCookie('badgoodid',fid,1);
		}
		
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_phpurl/}/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);
	  DedeXHTTP = null;
	}

	function updateview( )
	{
		var saveid = GetCookie('viewinfo');
		var aid={dede:field.aid /};
		
		
		if(saveid != null)
		{
			var bfound=false;
			var saveids = saveid.split(',');
			for(  var sid in  saveids )
			{
				
				if (parseInt(saveids[sid])==parseInt(aid) )
				{
					bfound = true;
					return;
				}
			}
			

		}
		
		
	  var taget_obj = document.getElementById('viewcount');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmsurl/}/plus/flcount.php?view=yes&aid={dede:field.aid /}");
	  DedeXHTTP = null;
		saveid += ','+aid;
		SetCookie('viewinfo',saveid,1);

	}

-->
</script>
</head>
<body class="infosview">
{dede:include filename="head.htm"/}
<!-- /header -->
<div class="w960 center clear mt1">
	<div class="pleft">
		<div class="place">
			<strong>当前位置:</strong> {dede:field name='position'/}{dede:infospos }{/dede:infospos}
		</div><!-- /place -->
		<div class="viewbox">
			<div class="title">
				<h2>{dede:field.title/}</h2>
			</div><!-- /title -->
			<div class="title2">
				<span class="title2_t" >发布时间：</span><span>{dede:field.pubdate function="MyDate('y-m-d H:i',@me)"/} </span>
				<span class="title2_t" >查看次数：</span><span id=viewcount>{dede:field.click /}</span>
				<span class="title2_t" >所属区域：</span><span>{dede:field.nativeplace /}</span>
				<span class="title2_t" >信息类型：</span><span>{dede:field.infotype /}</span>
			</div>
			
			<div class="content">
			　　{dede:field.body /}
			</div>
			<!-- <div class="labeltitle">
				<strong>发贴人</strong>
			</div> -->
			<div class="infolist">
				<div class="tip" >您可以这样电话联系：“您好，我从东阿信息港看到您发布的...信息,请问...”</div>
				<table><tr><th class="title3">联系电话：</th>
					<td><span id="infos_tel">{dede:field.tel /}</span><button id=telbutton style="display:none" onclick="mobilecity()">手机归属地查看</button><a id=telcity>手机号所在地: {dede:field.telcity /}</a></td>
				</tr>
				<tr><th class="title3">联系人：</th><td>{dede:field.linkman /}</td></tr>
				
				<script>
				<!--
					var patt=new RegExp("^\s*\d{11}\s*$");
					if( /^\s*\d{11}\s*$/.test("{dede:field.tel /}") )
					{
						btn = document.getElementById('telbutton');
						
						if( "{dede:field.telcity /}"=="")
						{
							btn.style.display="";
						}
					}

					if( "{dede:field.telcity /}"=="")
					{
						document.getElementById('telcity').style.display="none";
					}

					function mobilecity()
					{
						  var telc = document.getElementById('telcity');
						  telc.style.display="";
						  telc.innerHTML='<img border=0 src={dede:global.cfg_templeturl/}/images/ld1.gif />';
						  document.getElementById('telbutton').style.display="none";

						 var taget_obj = document.getElementById('telcity');
						  myajax = new DedeAjax(taget_obj,false,false,'','','');
						  myajax.SendGet2("{dede:global.cfg_cmsurl/}/member/fun2.php?x=m&aid={dede:field.aid /}&tel={dede:field.tel /}");
						 
					}

				-->
				</script>
				<tr><th class="title3">电子邮箱：</th><td>{dede:field.email/}</td></tr>
				<tr><th class="title3">地址：</th><td>{dede:field.address /}</td></tr>
				<tr><th class="title3">截止日期：</th><td>{dede:field.endtime function="MyDate('Y-m-d H:m',@me)" /} </td></tr></table>
			</div><!-- /info -->
			
			
			<div class="boxoff">
				<strong>------分隔线----------------------------</strong>
			</div>
			<div class="handle">
				<div class="actbox">
					<ul>
						<li id="act-fav"><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li>
						<li id="act-err"><a href="{dede:field name='phpurl'/}/erraddsave.php?aid={dede:field.id/}&title={dede:field.title/}" target="_blank">挑错</a></li>
						<li id="act-pus"><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li>
						<li id="act-pnt"><a href="#" target="_blank" onClick="window.print();">打印</a></li>
					</ul>
				</div><!-- /actbox -->
			</div><!-- /handle -->
		</div><!-- /viewbox -->


		<div class="mt1">
			<dl class="tbox">
				<dt>
					<strong>最新评论</strong>
					<span class="more"><a href="{dede:field name='phpurl'/}/feedback.php?aid={dede:field.id/}">查看所有评论</a></span>
				</dt>
				<dd>
					<div class="dede_comment">
                    <script language='javascript' type='text/javascript' src="{dede:field name='phpurl'/}/feedback_js.php?aid={dede:field name='id'/}"></script>

					</div><!-- /dede_comment -->
				</dd>
			</dl>
		</div><!-- /comment -->
		<div class="mt1">
		<dl class="tbox">
			<dt>
				<strong>发表评论</strong>
				<span class="more"><a href="{dede:field name='phpurl'/}/feedback.php?aid={dede:field.id/}">查看所有评论</a></span>
			</dt>
			<dd>
				<div class="dede_comment_post">
          <form action="{dede:field name='phpurl'/}/feedback.php" method="post" name="feedback">
          <input type="hidden" name="action" value="send" />
          <input type="hidden" name="comtype" value="comments">
          <input type="hidden" name="aid" value="{dede:field name="id"/}" />
          <input type="hidden" name="isconfirm" value="yes" />
                    <div class="dcmp-title">
						<small>请自觉遵守互联网相关的政策法规，严禁发布色情、暴力、反动的言论。</small>
					</div><!-- /dcmp-title -->
					<div class="dcmp-stand">
						<strong>评价:</strong>
							<input type="radio" name="feedbacktype" checked="1" value="feedback" id="dcmp-stand-neu" /><label for="dcmp-stand-neu"><img src="{dede:global.cfg_templeturl/}/images/cmt-neu.gif" />中立</label>
							<input type="radio" name="feedbacktype" value="good" id="dcmp-stand-good" /><label for="dcmp-stand-good"><img src="{dede:global.cfg_templeturl/}/images/cmt-good.gif" />好评</label>
							<input type="radio" name="feedbacktype" value="bad" id="dcmp-stand-bad" /><label for="dcmp-stand-bad"><img src="{dede:global.cfg_templeturl/}/images/cmt-bad.gif" />差评</label>
					</div><!-- /dcmp-stand -->
					<div class="dcmp-content">
						<textarea cols="60" name="msg" rows="5" class="ipt-txt"></textarea>
					</div><!-- /dcmp-content -->

					<div class="dcmp-mood">
						<strong>表情:</strong>
						<ul>
								<li><input type="radio" name='face' value='6' checked="1" /><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-6.gif" /></li>
								<li><input type="radio" name='face' value='4'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-4.gif" /></li>
								<li><input type="radio" name='face' value='3'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-3.gif" /></li>
								<li><input type="radio" name='face' value='5'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-5.gif" /></li>
								<li><input type="radio" name='face' value='2'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-2.gif" /></li>
								<li><input type="radio" name='face' value='1'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-1.gif" /></li>
								<li><input type="radio" name='face' value='7'/><img src="{dede:global.cfg_templeturl/}/images/mood/ico-mood-7.gif" /></li>
						</ul>
					</div><!-- /dcmp-mood -->
					<div class="dcmp-post"><!--未登陆-->
							<div class="dcmp-userinfo" id="_ajax_feedback">
								用户名:<input type="text" name="username" size="16" class="ipt-txt" />
								密码:<input name="pwd" type="password" size="16" class="ipt-txt" />
								验证码:<input type="text" name="validate" size="4" class="ipt-txt" /><img src="{dede:global.cfg_cmsurl/}/include/vdimgck.php" />
                                <input type="checkbox" name="notuser" id="dcmp-submit-guest" /><label for="dcmp-submit-guest"> 匿名? </label>
							</div>


                             <script language="javascript" type="text/javascript">
								 CheckLogin();
								 updateview();
							 </script>
							<div class="dcmp-submit" >
								<button type="button" onClick='checkSubmit({dede:field name='phpurl'/})'>发表评论</button>
							</div>
						</div>
                    </form>
				</div><!-- /dede_comment_post -->
			</dd>
		</dl>
	</div>

	</div><!-- /pleft -->

	<div class="pright">
		<div class="infos_userinfo">
 			{dede:memberinfos}
			<dl class="tbox">
				<dt><strong>发布者资料</strong></dt>
				<dd>
					<a href="/u/?[field:spaceid/]" class="userface"><img src="[field:face/]" width="52" height="52" /></a>
					<a href='/u/?[field:spaceid/]' class="username">[field:uname/]</a>
					<span class="useract">
						<a href="/u/?[field:spaceid/]" class="useract-vi">开心空间</a>
                        <a href="/u/cp.php?ac=pm&uid=[field:spaceid/]" class="useract-pm">发送消息</a> 
						<a href="/u/cp.php?ac=friend&op=add&uid=[field:spaceid/]" class="useract-af">加为好友</a> 
					</span>
					<span class="userinfo-sp"><small>用户等级:</small>[field:rankname /]</span>
					<span class="userinfo-sp"><small>注册时间:</small>[field:jointime function="MyDate('Y-m-d H:m',@me)"/]</span>
					<span class="userinfo-sp"><small>最后登录:</small>[field:logintime function="MyDate('Y-m-d H:m',@me)"/]</span>
				</dd>
			</dl>
			{/dede:memberinfos}
   	 </div>

		<div class="hot mt1">
			<dl class="tbox">
				<dt><strong>最新信息</strong></dt>
				<dd>
					<ul class="c1 ico2">
                     {dede:arclistsg orderby='id' titlelen='60' row='20'}
                    	<li><a href="[field:arcurl/]">[field:title/]</a></li>
                    {/dede:arclistsg}
					</ul>
				</dd>
			</dl>
		</div>

	</div><!-- /pright -->

</div>

{dede:include filename="footer.htm"/}
<!-- /footer -->

</body>
</html>
